package com.example.selfcontrol.dto;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class MessageTotalDTO {
    // 消息列表 | 左边通知栏的用户名字 | 用户id | 最新消息 |
    private Long id ;

    private List<String> content ;  // 消息正文

    private boolean unReadCount ; // 未读消息数量

    private boolean isDeleted ; // 该消息是否删除

    private Date creatTime ; // 消息产生时间

    private String notifyName ; // 通知用户名

    private String notifyPicture ; // 通知用户头像

    public MessageTotalDTO(Long id, List<String> content, boolean unReadCount, boolean isDeleted, Date creatTime, String notifyName, String notifyPicture) {
        this.id = id;
        this.content = content;
        this.unReadCount = unReadCount;
        this.isDeleted = isDeleted;
        this.creatTime = creatTime;
        this.notifyName = notifyName;
        this.notifyPicture = notifyPicture;
    }
}
